<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
$nam=array('1910','1911','1912','1913','1914','1915','1916','1917','1918','1919',
            '1920','1921','1922','1923','1924','1925','1926','1927','1928','1929',
            '1930','1931','1932','1933','1934','1935','1936','1937','1938','1939',
            '1940','1941','1942','1943','1944','1945','1946','1947','1948','1949',
            '1950','1951','1952','1953','1954','1955','1956','1957','1958','1959',
           '1960','1961','1962','1963','1964','1965','1966','1967','1968','1969',
           '1970','1971','1972','1973','1974','1975','1976','1977','1978','1979',
           '1980','1981','1982','1983','1984','1985','1986','1987','1988','1989',
           '1990','1991','1992','1993','1994','1995','1996','1997','1998','1999',
           '2000','2001','2002','2003','2004','2005','2006','2007','2008','2009',
           '2010','2011','2012','2013','2014','2015','2016','2017','2018','2019');
?>
<form action="<?php echo base_url()?>staff/updateExperienceStaff" name="formInsertExperience" method="POST" onsubmit="return checkExperience();">
<table class="tablebg" cellspacing="1" align="right" width="900px" border="0">
    <tr>
        <td colspan="4" class="bar">Update Experience for Staff: <strong><?=$FullName?></strong></td>
    </tr>
    <tr>
        <td><input type="hidden" name="txtStaffID" value="<?=$Staff_ID?>"></td>
        <td><input type="hidden" name="txtExperienceID" value="<?=$Experience_ID?>"></td>
    </tr>
    <tr>
        <td class="row10">
            Education
        </td>
        <td class="row12">
            <input type="text" name="txtEducation" class="form" value="<?php if(isset($Education)) echo $Education?>">
        </td>
    </tr>
    <tr>
        <td class="row10">
            Previous Position
        </td>
        <td class="row12">
            <input type="text" name="txtPreviousPosition" class="form" value="<?php if(isset($PreviousPosition)) echo $PreviousPosition?>">
        </td>
    </tr>
     <tr>
        <td class="row10">
            Company
        </td>
        <td class="row12">
            <input type="text" name="txtCompany" class="form" value="<?php if(isset($Company)) echo $Company?>">
        </td>
    </tr>
    <tr>
        <td class="row10">
            Industry
        </td>
        <td class="row12">
            <input type="text" name="txtIndustry" class="form" value="<?php if(isset($Industry)) echo $Industry?>">
        </td>
    </tr>
    <tr>
        <td class="row10">
            Year
        </td>
        <td class="row12">
            <select name="txtYear">
                <?php
                                   foreach($nam as $item){
                                     if($item == $Year)
                                     echo "<option selected>$item</option>";
                                     else echo "<option>$item</option>";
                                   }
                      ?>
            </select>
        </td>
    </tr>
    <tr>
        <td class="row1" align="right" ><input type="submit" name="insert" id="submit" value="Save"></td>
        <td class="row1" align="left" ><input type="reset" name="Reset" id="submit" value="Reset"></td>
    </tr>
    <tr>
        <td class="row1" align="center" colspan="2"><strong><?php if(isset($experience_exist)) echo $experience_exist;?></strong></td>
    </tr>
     <tr>
        <td class="row1" align="center" colspan="2">
            <?php $titleback = '<img src ="'.base_url().'templates/images/icons/back.jpg" width=40 height=25 title="Back"/>';
            $back = anchor("staff/index",$titleback);
            echo $back;?>
        </td>
    </tr>
</table>
</form>

